//
// Created by 高联锐 on 2021/2/18.
//
#include <stdio.h>
#define STRING "i am a string"
#define DEFAULT 40
int main(){
    printf("%s", "chapter11.c run...\n");

    /**
     * 字符串定义
     */
    char string[DEFAULT] = "i am a string also";
    const char * cp = "i am a string too";
    // puts 只显示字符串
    puts(STRING);
    puts(string);
    puts(cp);

    /**
     * 字符串看做指针
     */

    printf("%s %p %c\n","we","are",*"children");

    return 0;
};

